package com.dstz.crm.core.dao;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.dstz.base.dao.BaseDao;
import com.dstz.crm.core.model.CustomerRelation;

/**
 * 案例 DAO接口
 * @author aschs
 * @email aschs@qq.com
 * @time 2018-08-24 18:06:04
 */
public interface CustomerRelationDao extends BaseDao<String, CustomerRelation> {
	void removeByCustomerId(String customerId); 
	void removeByContractId(String contractId); 
	List<CustomerRelation>  getCustomerRelation(@Param("customerId")String customerId,@Param("relationType")String relationType);
	List<CustomerRelation>  getContractRelation(@Param("contractId")String contractId,@Param("relationType")String relationType);
}
